#pragma once
#include "XY.h"
#include <vector>
using namespace std;
class Animal
{
public:
	Animal();
	~Animal();
	virtual void eat();
	virtual void move();
	void setName(char name);
	void setSex(bool sex);
	void setAge(short age);
	void setLifeTime(short lifetime);
	void setHunger(short hunger);
	void setLocation(XY* xy);
	void setReproduceFlag(bool reproduceFlag);

	char getName();
	bool getSex();
	short getAge();
	short getLifeTime();
	short getHunger();
	XY* getLocation();
	bool getReproduceFlag();

	bool die();

	bool reproduce();

	void updateMessage(int value);

	void addPrey(char c);
private:
	XY* xy;

	short age;

	bool sex;

	short lifeTime;

	short hunger;

	XY* location;

	bool reproduceFlag;


	vector<char> preyList;

	char name;

};

